package io.renren.modules.basic.service.impl;

import io.renren.modules.basic.dao.MtCcWarehousRankDao;
import io.renren.modules.basic.entity.MtCcWarehousRankEntity;
import io.renren.modules.basic.service.MtCcWarehousRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;




@Service("mtCcWarehousRankService")
public class MtCcWarehousRankServiceImpl extends ServiceImpl<MtCcWarehousRankDao, MtCcWarehousRankEntity> implements MtCcWarehousRankService {

    @Autowired
    private MtCcWarehousRankDao mtCcWarehousRankDao;
    @Override
    public List queryPage(Map<String, Object> params) {
        /*IPage<MtCcWarehousRankEntity> page = this.page(
                new Query<MtCcWarehousRankEntity>().getPage(params),
                new QueryWrapper<MtCcWarehousRankEntity>()
        );*/

        return mtCcWarehousRankDao.selectList(new QueryWrapper<MtCcWarehousRankEntity>()
                .eq("colunm_code",params.get("column"))
                .orderBy(false,true,"id"));
    }

}